package third_exp;

public class exp_1 {
    public static void main(String[] args)
    {
        // System.out.println("Hello World");
        People p = new People();
        p.speakHello();
        System.out.println();

        ChinaPeople cp = new ChinaPeople();
        cp.speakHello();
        cp.chinaKungfu();
        System.out.println();

        AmericaPeople ap = new AmericaPeople();
        ap.speakHello();
        ap.americaBoxing();
        System.out.println();

        XianPeople xp = new XianPeople();
        xp.speakHello();
        xp.qingQiangOpera();
    }
}


class People
{
    protected double weight;
    protected double height;

    public void speakHello()
    {
        System.out.println("People say: Hello!");
    }
    public void averageHeight()
    {
        System.out.println("People average height: " + height);
    }
    public void averageWeight()
    {
        System.out.println("People average weight: " + weight);
    }
}

class ChinaPeople extends People
{
    public void chinaKungfu()
    {
        System.out.println("China Kungfu");
    }
    public void speakHello()
    {
        System.out.println("Chinese say: Hello!");
    }
    public void averageHeight()
    {
        System.out.println("Chinese average height: " + height);
    }
    public void averageWeight()
    {
        System.out.println("Chinese average weight: " + weight);
    }
}

class AmericaPeople extends People
{
    public void americaBoxing()
    {
        System.out.println("America boxing");
    }
    public void speakHello()
    {
        System.out.println("American say: Hello!");
    }
    public void averageHeight()
    {
        System.out.println("American average height: " + height);
    }
    public void averageWeight()
    {
        System.out.println("American average weight: " + weight);
    }
}

class XianPeople extends People
{
    public void qingQiangOpera()
    {
        System.out.println("Xian Qiang Opera");
    }

    public void speakHello()
    {
        System.out.println("XianPeople say: Hello!");
    }
    public void averageHeight()
    {
        System.out.println("XianPeople average height: " + height);
    }
    public void averageWeight()
    {
        System.out.println("XianPeople average weight: " + weight);
    }
}